<div class="thuoclops index">
	<h2><?php __('Thuoclops');?></h2>
	<table id='tables' cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Mã độc giả');?></th>
			<th><?php echo $this->Paginator->sort('Mã lớp');?></th>
			<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($thuoclops as $thuoclop):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $thuoclop['Thuoclop']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($thuoclop['Docgia']['id'], array('controller' => 'docgias', 'action' => 'view', $thuoclop['Docgia']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($thuoclop['Lop']['id'], array('controller' => 'lops', 'action' => 'view', $thuoclop['Lop']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Xem', true), array('action' => 'view', $thuoclop['Thuoclop']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $thuoclop['Thuoclop']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $thuoclop['Thuoclop']['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $thuoclop['Thuoclop']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page% của %pages%, hiển thị %current% kết quả %count% tổng cộng, bắt đầu từ %start%, kết thúc đến %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('trở về', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('tiếp', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Thực hiện'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Thuộc lớp mới', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('DS Độc giả', true), array('controller' => 'docgias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Độc giả mới', true), array('controller' => 'docgias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Lớp', true), array('controller' => 'lops', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Lớp mới', true), array('controller' => 'lops', 'action' => 'add')); ?> </li>
	</ul>
</div>